package com.fr.chicken.manager.friend;

import com.fr.chicken.dao.FriendInfoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class FriendManager {
    @Autowired
    private FriendInfoDao friendInfoDao;

    public boolean isFriend(Long playerId,Long friendId){
        int num = friendInfoDao.countByPlayerIdAndFriendId(playerId,friendId);
        return num>0;
    }
}
